package com.ruoyi.subject.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 考试记录-无账号对象 t_qb_exam_record_no
 * 
 * @author lzhj
 * @date 2021-03-26
 */
public class QbExamRecordNo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /**
     * 人员id
     */
    @ApiModelProperty(value = "人员id")
    @Excel(name = "人员id")
    private Long userId;

    /**
     * 考试时间
     */
    @ApiModelProperty(value = "考试时间,yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "考试时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date examTime;
    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间,yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 考试成绩
     */
    @ApiModelProperty(value = "考试成绩")
    @Excel(name = "考试成绩")
    private Float score;

    /**
     * 题库类型
     */
    @ApiModelProperty(value = "题库类型")
    @Excel(name = "题库类型")
    private String subType;

    /** 证件号 */
    @ApiModelProperty(value = "证件号")
    @Excel(name = "证件号")
    private String zjh;

    /** 姓名 */
    @ApiModelProperty(value = "姓名")
    @Excel(name = "姓名")
    private String xm;

    @ApiModelProperty(value = "微信openid")
    private String openid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setExamTime(Date examTime) 
    {
        this.examTime = examTime;
    }

    public Date getExamTime() 
    {
        return examTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setScore(Float score)
    {
        this.score = score;
    }

    public Float getScore()
    {
        return score;
    }
    public void setSubType(String subType) 
    {
        this.subType = subType;
    }

    public String getSubType() 
    {
        return subType;
    }
    public void setZjh(String zjh) 
    {
        this.zjh = zjh;
    }

    public String getZjh() 
    {
        return zjh;
    }
    public void setXm(String xm) 
    {
        this.xm = xm;
    }

    public String getXm() 
    {
        return xm;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("examTime", getExamTime())
            .append("endTime", getEndTime())
            .append("score", getScore())
            .append("subType", getSubType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("zjh", getZjh())
            .append("xm", getXm())
            .toString();
    }
}
